<style>
.fui-goods-item .image .playbtn {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
	padding-top:3rem;
    text-align: center;
    color: #fff;
}
.fui-goods-group.block .fui-goods-item .detail {height:auto}
.fui-goods-group.block .fui-goods-item .detail.commission_money {height:auto}
.fui-tab {
    background: none;
}
.fui-tab a{font-size:0.85rem;line-height: 1.4;margin:0 0.5rem}
.fui-tab.fui-tab-danger a.active {
    color: {{main.syscolor||'red'}};
    border-color: {{main.syscolor||'red'}};
}
.fui-tab:after {
    height: 0;
}
.arrow-left {
  display:inline-block;
  width:0px;
  height:0px;
  border-bottom:0.3rem solid transparent;  /* left arrow slant */
  border-top:0.3rem solid transparent; /* right arrow slant */
  border-right:0.3rem solid #ffe9ba; /* bottom, add background color here */
  font-size:0px;
  line-height:0px;
  margin-bottom:-0.1rem;
  margin-left:-0.45rem;
}
.btn01{padding:0.25rem;font-size:0.6rem;color:#ffe9ba;background:#101010;margin-right:-0.25rem;border-top-left-radius:0.2rem;border-bottom-left-radius:0.2rem;}
.btn02{padding:0.25rem;font-size:0.6rem;color:#703800;background:#ffe9ba;border-top-right-radius:0.2rem;border-bottom-right-radius:0.2rem;}
</style>
<div ng-if="pagedata.setting.no_typegoodstop!=1" class="fui-tab fui-tab-danger" style="margin-top:0.7rem;padding:0 0.5rem">
		<a ng-class="{'external':1,'active':pagedata.showtype==0}" ng-click="pagedata.upshowtype(0)">
			<div style="color:#333">好物</div>
			<div style="font-size:0.6rem;line-height:1.4;">为您推荐</div>
		</a>
		<a ng-class="{'external':1,'active':pagedata.showtype==1}" ng-click="pagedata.upshowtype(1)">
			<div style="color:#333">新品</div>
			<div style="font-size:0.6rem;line-height:1.4;">24销售热销</div>
		</a>
		<a ng-class="{'external':1,'active':pagedata.showtype==2}" ng-click="pagedata.upshowtype(2)">
			<div style="color:#333">实惠</div>
			<div style="font-size:0.6rem;line-height:1.4;">便宜好货</div>
		</a>
		<a ng-class="{'external':1,'active':pagedata.showtype==3}" ng-click="pagedata.upshowtype(3)">
			<div style="color:#333">热销</div>
			<div style="font-size:0.6rem;line-height:1.4;">热销榜单</div>
		</a>
</div>
<div ng-if="pagedata.list" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="pagedata.gotoitem(item);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
						<div ng-show="item.total <=0" class="salez" style="background-image: url({{tomedia(pagedata.shopset.saleout) || '../addons/jy_weishop/resource/images/salez.png'}});"></div>
						<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div class="detail" ng-class="{'detail':1,'commission_money':item.commission_title}">
					<div ng-click="pagedata.gotoitem(item);" class="name">
							<span ng-show="item.ispresell != 1" class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">{{item.merchid>0?'商户':'直营'}}</span>
							{{item.title}}
					</div>
					<div class="price">
						<span class="text">￥{{item.active.price || item.price}} <span class="oldprice">￥{{item.originalprice}}</span></span>
						
					</div>
					<div style="margin-top:0">
						<span class="btn01">VIP价</span>
						<span class="btn02"><span class="arrow-left"></span>￥{{item.vipprice || '0.00'}}</span>
					</div>
				</div>
			</div>
</div>
<div id="showtaobaoke"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="width:80%;left:10%;">
			<div class="wap-qrcode-container" style="border-radius:0.5rem;height:auto">
				<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
				<p class="example1" style="padding:0.3rem;border-radius:0.5rem;margin:1rem;background:#FFFFCC">{{pagedata.copyinfo}}</p>
				<p ng-click="clip(pagedata.copyinfo)" class="example1 btn btn-sm btn-red-o">复制商品口令</p>
			</div>
		</div>
</div>
<div ng-include="sys_html('goods/_subpicker','','','jy_weishop')"></div>
<script>
scope.pagedata.showtype=0;
var getlistaction='jy_shopmerch/goods.index/getlist/';
scope.pagedata.upshowtype=function(type){
	scope.pagedata.showtype=type;
	if(type==0){
		scope.pagedata.params.order='isrecommand';
	}
	if(type==1){
		scope.pagedata.params.order='new';
	}
	if(type==2){
		scope.pagedata.params.order='price';
	}
	if(type==3){
		scope.pagedata.params.order='sales';
	}
	scope.tool.get_list(getlistaction,true);
}
scope.tool.get_list(getlistaction,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list(getlistaction);
}
</script>
